from applications.extensions import ma
from marshmallow import fields


class EmotionResultSchema(ma.Schema):
    id = fields.Integer()
    user_id = fields.Integer()
    username = fields.Str()
    user_course_types = fields.Str()
    user_course_names = fields.Str()
    user_course_details = fields.Str()
    user_date = fields.DateTime()
    user_grade = fields.Str()


# 动作反应训练成绩
class ResponseResultSchema(ma.Schema):
    grade_id = fields.Integer()
    student_id = fields.Integer()
    course_id = fields.Integer()
    grade = fields.Str()
    train_time = fields.DateTime()


# 动作标准训练成绩
class StandardResultSchema(ma.Schema):
    grade_id = fields.Integer()
    student_id = fields.Integer()
    course_id = fields.Integer()
    action_id = fields.Integer()
    grade = fields.Str()
    train_time = fields.DateTime()


class PsychologyResultSchema(ma.Schema):
    id = fields.Integer()
    user_id = fields.Integer()
    username = fields.Str()
    user_course_types = fields.Str()
    user_course_names = fields.Str()
    user_course_details = fields.Str()
    user_date = fields.DateTime()
    user_grade = fields.Str()